<?php 


class TestModel extends Model{
	
	protected $_rules = array(
		'name' => array(
			'condition' => 'required',
			'label' => '姓名不能为空'
		),
		'score' => array(
			'condition' => 'required',
			'label' => '分数不能为空'
		)
	);
	
	public function index(){
		$data = $this->select();
		return $data;
	}
	
}

?>